package com.zxq.ruoyi.receive;

import com.alibaba.fastjson.JSON;
import com.zxq.ruoyi.domain.vo.DevCmdVo;
import com.zxq.ruoyi.service.impl.IotCmdServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public class IotReceiveJsonController {

    /**
     * 物联网指令服务
     */
    @Autowired
    IotCmdServiceImpl iotCmdService;

    /**
     * 接收report消息
     * @param devCmdVo 设备指令信息
     */
    @PostMapping("report")
    public void requestReceive(@RequestBody DevCmdVo devCmdVo) {
        System.out.println("receive:" + JSON.toJSONString(devCmdVo));
    }





}
